package org.springframework.study.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.study.model.User;


public class AnnotationConfigApplicationContextDemo {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(User.class);
		User user = context.getBean("user", User.class);
		user.query();

		int[] arrays = new int[3];
		int rear = -1;
		arrays[++rear] = 2;
		System.out.println(arrays[0]);
	}
}
